home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
SGI Hot Mix 17
/
Hot Mix 17.iso
/
HM17_SGI
/
research
/
examples
/
doc
/
plot06
< prev
next >
Wrap
Text File
|
1997-07-08
|
617b
|
26 lines
; Compile the file plot05.pro, which contains two IDL procedures
; named "BOX" and "BARGRAPH".
.r plot05.pro
; Define variables.
@plot01
; Load a colorful color table.
LOADCT, 39
; As in the previous example, the PLOT procedure is used to draw
; the axes and to establish the scaling using the NODATA keyword.
PLOT, year, CHINOOK, YRANGE = [MIN(allpts),MAX(allpts)], $
TITLE = 'Salmon Populations', /NODATA, XRANGE = [year(0), 1990]
; Retrieve the y value of the bottom X-axis and store it in
; the variable minval. Pass this variable to the BARGRAPH procedure.
minval = !Y.CRANGE(0)
BARGRAPH, minval